package com.jereh.music;

import android.app.Application;
import android.app.NotificationManager;

import com.jereh.music.entity.Song;
import com.jereh.music.ible.IMusic;

import java.util.ArrayList;
import java.util.List;

/**
 * 共享全局数据(整个应用都可以共享)
 * Created by Administrator on 2016/12/16.
 */
public class PlayApplication extends Application {

    //播放列表
    public List<Song> songList=new ArrayList<>();

    //当前播放的歌曲
    public int songPosition;

    //操作流程
    public IMusic music;

    //消息管理器
    public NotificationManager notiManager;

    @Override
    public void onCreate() {
        super.onCreate();
        notiManager=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
    }
}
